package com.tencent.sr.iris.activity.interfaces.response.activity;

/**
 * 描述用途
 *
 * @author wruiiwang
 * @date 2023/2/20
 */

import com.tencent.sr.iris.activity.interfaces.dto.AwardInfoDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@ToString
public class ActivityAwardInfoResponse {

    @ApiModelProperty("5-代金券 7-金币；8是奖励金")
    private String type;

    @ApiModelProperty("奖励数量")
    private Integer value;

    /**
     * 文案
     */
    @ApiModelProperty("文案")
    private String desc;

    public static ActivityAwardInfoResponse convert(AwardInfoDTO awardInfo) {
        ActivityAwardInfoResponse response = new ActivityAwardInfoResponse();
        response.setType(awardInfo.getType());
        response.setValue(awardInfo.getValue());
        return response;
    }
}
